// 导入组件
import Vue from 'vue';
import Router from 'vue-router';
// 登录
import login from '@/views/login';
// 首页
import index from '@/views/index';
/**
 * 基础菜单
 */
//控制台
import controltest1 from '@/views/control/test';
//信息统计
import permissionUser from '@/views/information/UserInf';
import Userupdate from '@/views/information/Userupdate';
//商户管理
import busnesstest1 from '@/views/business/manage';
//活动管理
import activityapproval from '@/views/activity/approval';
import activitytest1 from '@/views/activity/test';
//动态管理
import dynamictest1 from '@/views/dynamic/test';
//投诉管理
import complainttest1 from '@/views/complaint/manage';
import complainttest2 from '@/views/complaint/add';
import complainttest3 from '@/views/complaint/test';
import complainttest4 from '@/views/complaint/business';
import complainttest5 from '@/views/complaint/addBusiness'
import complainttest6 from '@/views/complaint/lookBusiness'
import complainttest7 from '@/views/complaint/platform'
//收费管理
import tolltest1 from '@/views/toll/test';
//物业管理
import propertytest1 from '@/views/property/test';
//权限管理
import rolemanager from '@/views/permission/rolemanager';
//系统管理
import systemtest1 from '@/views/system/test';



// 启用路由
Vue.use(Router);

// 导出路由 
export default new Router({
    routes: [{
        path: '/',
        name: '',
        component: login,
        hidden: true,
        meta: {
            requireAuth: false
        }
    }, {
        path: '/login',
        name: '登录',
        component: login,
        hidden: true,
        meta: {
            requireAuth: false
        }
    }, {
        path: '/index',
        name: '首页',
        component: index,
        iconCls: 'el-icon-tickets',
        children: [
            {
                path: '/dynamic/test',
                name: '动态管理子菜单1',
                component: dynamictest1,
                meta: {
                    requireAuth: true
            }
        },
            {
                path: '/control/test',
                name: '控制台子菜单1',
                component: controltest1,
                meta: {
                    requireAuth: true
            }
        },
        
            {
                path: '/business/manage',
                name: '商品管理',
                component: busnesstest1,
                meta: {
                    requireAuth: true
            }
        },
         {
            path: '/activity/approval',
            name: '活动管理',
            component:activityapproval,
            meta: {
                requireAuth: true
         }
         },
         {
            path: '/activity/test',
            name: '活动上传',
            component:activitytest1,
            meta: {
                requireAuth: true
         }
         },
         {
            path: '/complaint/manage',
            name: '投诉管理子菜单1',
            component:complainttest1,
            meta: {
                requireAuth: true
         }
         },
         {
            path: '/complaint/add',
            name: '投诉管理子菜单1',
            component:complainttest2,
            meta: {
                requireAuth: true
         }
         },
         {
            path: '/complaint/test',
            name: '投诉管理子菜单1',
            component:complainttest3,
            meta: {
                requireAuth: true
         }
         },
         {
            path: '/complaint/business',
            name: '投诉管理子菜单1',
            component:complainttest4,
            hidden:true,
            meta: {
                requireAuth: true
         }
         },
         {
            path: '/complaint/addBusiness',
            name: '投诉管理子菜单1',
            component:complainttest5,
            hidden:true,
            meta: {
                requireAuth: true
         }
         },
         {
            path: '/complaint/lookBusiness',
            name: '投诉管理子菜单1',
            component:complainttest6,
            meta: {
                requireAuth: true
         }
         },
         {
            path: '/complaint/platform',
            name: '投诉管理子菜单1',
            component:complainttest7,
            meta: {
                requireAuth: true
         }
         },

         {
            path: '/toll/test',
            name: '投诉管理子菜单1',
            component:tolltest1,
            meta: {
                requireAuth: true
         }
         },

         

         {
            path: '/property/test',
            name: '物业管理子菜单1',
            component: propertytest1,
            meta: {
                requireAuth: true
         }
         },
         {
            path: '/permission/rolemanager',
            name: '角色管理子菜单',
            component: rolemanager,
            meta: {
                requireAuth: true
         }
         },
         {
            path: '/system/test',
            name: '权限管理子菜单1',
            component: systemtest1,
            meta: {
                requireAuth: true
         }
         },
         
         {
            path: '/information/UserInf',
            name: '用户信息',
            component: permissionUser,
            meta: {
                requireAuth: true
         },
         
         },
         {
            path: '/information/Userupdate',
            name: '用户信息修改',
            component: Userupdate,
            meta: {
                requireAuth: true
         },
         
         }


        //     {
        //         path: '/goods/Goods',
        //         name: '商品管理',
        //         component: Goods,
        //         meta: {
        //             requireAuth: true
        //     }
        // },
        //     {
        //         path: '/rbac/manager',
        //         name: '商品管理',
        //         component: manager,
        //         meta: {
        //             requireAuth: true
        //     }
        // },
        //     {
        //     path: '/goods/Goods',
        //     name: '商品管理',
        //     component: Goods,
        //     meta: {
        //         requireAuth: true
        //     }
        // }, {
        //     path: '/machine/Machine',
        //     name: '机器信息管理',
        //     component: Machine,
        //     meta: {
        //         requireAuth: true
        //     }
        // }, {
        //     path: '/machine/MachineAisle',
        //     name: '货道信息管理',
        //     component: MachineAisle,
        //     meta: {
        //         requireAuth: true
        //     }
        // }, {
        //     path: '/pay/Order',
        //     name: '交易订单',
        //     component: Order,
        //     meta: {
        //         requireAuth: true
        //     }
        // }, {
        //     path: '/system/user',
        //     name: '用户管理',
        //     component: user,
        //     meta: {
        //         requireAuth: true
        //     }
        // }, {
        //     path: '/system/Module',
        //     name: '菜单管理',
        //     component: Module,
        //     meta: {
        //         requireAuth: true
        //     }
        // }, {
        //     path: '/system/Role',
        //     name: '角色管理',
        //     component: Role,
        //     meta: {
        //         requireAuth: true
        //     }
        // }, {
        //     path: '/system/Dept',
        //     name: '公司管理',
        //     component: Dept,
        //     meta: {
        //         requireAuth: true
        //     }
        // }, {
        //     path: '/system/Variable',
        //     name: '系统环境变量',
        //     component: Variable,
        //     meta: {
        //         requireAuth: true
        //     }
        // }, {
        //     path: '/system/Permission',
        //     name: '权限管理',
        //     component: Permission,
        //     meta: {
        //         requireAuth: true
        //     }
        // }, {
        //     path: '/machine/MachineConfig',
        //     name: '支付配置信息',
        //     component: MachineConfig,
        //     meta: {
        //         requireAuth: true
        //     }
        // }, {
        //     path: '/pay/Config',
        //     name: '支付配置',
        //     component: Config,
        //     meta: {
        //         requireAuth: true
        //     }
        // }, {
        //     path: '/druid/login',
        //     name: '监控查询',
        //     component: druidLogin,
        //     meta: {
        //         requireAuth: true
        //     }
        // }, {
        //     path: '/charts/statistics',
        //     name: '数据可视化',
        //     component: statistics,
        //     meta: {
        //         requireAuth: true
        //     }
        // }
    ]
    }]
})